﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HammerMUD.System;

namespace HammerMUD.Characters
{
    public class CharacterUtilities
    {
        public static Character FindCharacter(String name)
        {
            foreach (User u in HammerMUD.System.HammerMUD.Users)
            {
                if (u.UserAccount.CurrentCharacter.Name.ToLower().Equals(name.ToLower()))
                {
                    return u.UserAccount.CurrentCharacter;
                }
            }

            return null;
        }
    }
}
